home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / Developer Documentation / Recipes, Tech Notes & Articles / Tech Notes / Utilities Documentation / ISO String < prev    next >
Encoding:
Text File  |  1995-11-08  |  1.1 KB  |  31 lines  |  [TEXT/ttxt]

  1. OpenDocâ„¢ Utilities Documentation
  2.  
  3. ISO String Utilities
  4. by The OpenDoc Design Team
  5.  
  6. © 1993-1995  Apple Computer, Inc. All Rights Reserved.
  7. Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
  8. Mac and OpenDoc are trademarks of Apple Computer, Inc.
  9.  
  10.  
  11. Introduction
  12.  
  13. ISO strings are essentially null-terminated 7-bit ASCII strings. The ISO String Utilities in OpenDoc are simply cover functions for the standard C string functions.
  14.  
  15. ISO String Utilities
  16.  
  17. The following is the definition of each ISO String utility functions in terms of the standard C string function:
  18.  
  19. #define ODISOStrCopy(D,S)  strcpy(D,S)
  20. #define ODISOStrNCopy(D,S,L) strncpy(D,S,L)
  21. #define ODISOStrConcat(D,S)  strcat(D,S)
  22. #define ODISOStrNConcat(D,S,L) strncat(D,S,L)
  23. #define ODISOStrCompare(A,B) strcmp(A,B)
  24. #define ODISOStrNCompare(A,B,L) strncmp(A,B,L)
  25. #define ODISOStrEqual(A,B)  (strcmp(A,B)==0)
  26. #define ODISOStrLength(S)  strlen(S)
  27.  
  28. ODISOStr ODISOStrFromCStr(const char* cstring);
  29.  
  30. Returns an ODISOStr which is a copy of the input parameter. The input parameter is not deallocated by this function. The caller needs to do it explicitly.
  31.